home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-1294.lzh / AMOSLIST / text0105.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  2.0 KB  |  40 lines

  1. Seumas @ Dark Unicorn Productions wrote:
  2.  
  3. > Help.
  4. > Amos is screweing me out of memory.  I've got a huge program, 340 k of
  5. > source at 7,400 lines. Whenever I add a few lines of code, usualy using a
  6. > few If/else/endif blocks or a few while wends, I get an Out Of Buffer Space
  7. > error when I test the program, and I have to add to the Set Buffer command.
  8. > But NOW my set buffer command is at 70 k!!!  When I put a Print Free in the
  9. > middle of my program, it says there's almost 50 k of UNUSED buffer!!! What's
  10. > wrong with Amos here?  Why does it think I need more buffer than I do??
  11. > (And no, I don't use HUGe strings, and no, the Print Free was AFTER all the
  12. > big Arrays are dimensioned.)
  13.  
  14. AMOS works with two buffers:
  15.  
  16.     - The first one is used for variables, like arrays and so on. If you
  17.       run the program and AMOS answers you "Out of variable space" you
  18.       must increase this buffer with the command "Set Buffer" in your
  19.       first line of the code.
  20.  
  21.     - The second one is used for the program itself as text. If you have a
  22.       huge program and you can't add more lines, you must increase the Text
  23.       Buffer size. You can do this with a special menu option (called "Set
  24.       Text Buffer"). If you usually work with huge programs I recommend you
  25.       to increase this buffer in your configuration. This is the buffer that
  26.       you have to increase.
  27.  
  28. I hope this helps
  29.  
  30. ===============================================================================
  31.              _/_/_/ _/     _/_/   _/_/_/    _/_/_/ _/_/_/ _/_/_/ _/_/_/
  32.  Angel Alvarez      _/  _/ _/     _/  _/   _/      _/     _/  _/ _/       _/   
  33.   (Aldi Soft)      _/_/_/ _/     _/  _/   _/      _/_/_/ _/  _/ _/_/     _/    
  34. angel@labein.es   _/  _/ _/     _/  _/   _/         _/ _/  _/ _/       _/     
  35.          _/  _/ _/_/_/ _/_/   _/_/_/    _/_/_/ _/_/_/ _/       _/      
  36. ===============================================================================
  37.          | Note: Aldi Soft isn't a software company. It's me. |
  38.          ======================================================
  39.  
  40.